<?php
/**
 * (ajax) rakuten异常订单
 */

namespace App\Admin\Ajax\CustomerDelivery;

use App\Logic\Plat\Rakuten\GrabOrders;

class RakutenOrderExceptionAjax{

    /**
     * 同步rakuten异常订单
     * @param $param
     * @return \Illuminate\Http\JsonResponse
     */
    public function syncRakutenOrderException($param){

        if (empty($param)) return response()->json(['status' => false, 'message' => '参数异常!']);

        GrabOrders::syncRakutenOrderException($param);

        return response()->json(['status' =>true, 'message' => '同步成功!']);
    }

}
